package main

import (
	"fmt"
	"time"
)

func job (index int) int{

	time.Sleep(time.Millisecond*500)
	return index

}

func main(){

	start:=time.Now()
	num:=5

	for i:=0;i<num;i++{
		fmt.Println(job(i))
	}

	end:=time.Since(start)
	fmt.Println("耗时",end.String())

}


//耗时 2.5438352s